/*
 * AbstractFacade.java
 *
 * Created on 1 2007 2:05
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.persistent.model;

import java.util.List;
import javax.annotation.Resource;
import javax.annotation.Resource.AuthenticationType;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceUnit;
import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.transaction.NotSupportedException;
import javax.transaction.RollbackException;
import javax.transaction.SystemException;

/**
 *
 * @author alexog
 */
public interface AbstractFacade<V> {

    void create(V v);

    void edit(V v);

    void destroy(V v);

    V find(V v);

    List<V> findAll();

    void update();
    
    void close();
    
    EntityManager getEntityManager();    
}
